c++ quick sort algorithm.