Update generic/permutations.lua