first draft of mergeSort