cubic permutations