cleaning up merge sort