Two Phase Multiway Merge Sort Implementation