merge sort working