Merge sort implemented