Mergesort in c++