cleanup of the merge sort program