add another method to quicksort