Old QuickSort created in C++