Updated merge sort in c++.