build quicksort