Added bench.h and inserted timing macros in main.

`make TIMER=1` to build with timings.