merge sort works