quicksort using C++