edited mergeSort