The arrows are the voltage supply. Single is 5v, double is 12v.
The single line is ground.
The capacitor should be as close to the H bridge as possible.
Basically connect it like this:
Battery + ----------------------+--- H bridge
Capacitor
Barrery - ----------------------+--- H bridge