quicksort part 1 coded