Two way merge sort