finished qsort