Example of quicksort using a single pass, ie without using left and right pointers.