merge sort is working with test case.