tested quicksort