Quicksort implemented in C++.