wrote a merge sort