fixed mergeSort