Memory Benchmarking Code.

Its .cpp file.