csci 371 common permutations