quicksort and test