Benchmarks

Refactor Makefiles and add benchmark script.