add some mergeSort code.