mergeSort exercise