Multi-threaded Quicksort in C