updated quicksort.cpp