some preemptive quicksort work