parallel quicksort in pthread