Threaded quicksort in C.