added second part of mergeSort