worked on quicksort