Working quicksort with lecture partition alg