debugging permutation code
fixed perms, can use thinner data structure