updates to merge sort