wrote MergeSort