Slp set/permutations update

The permutation hash is made more flexible.