quicksort with test, with one bug left.