updated permutations, quicksort