Change merge sort procedure to reflect latest working code.