Stable version of Merge sort