working on quicksort