quicksort in c++