Implemented Merge sort.