quick sort algorithm with C++