Implemented Merge sort