merge sort implementation and performance test.