Create MemoryBenchmark.c

Resolved segmentation bug fix for megabyte and corrected formulaes for throughput and latency.