comparison of quicksort and mergesort algorithms implemented in c++