add the merge sort algorithm in c++