Added benchmarks and a universal scheme for testing and benchmarking.