testing quicksort from input