Clean up the merge sort implementation a bit.