added a C++ quicksort implementation