Modified mergeSort.cpp.