flexible-permutations