added mergeSort()