Quick sort using c++