Quicksort implemented in C.