Add a C version of in-place quicksort.