optimization: speeded up 4pdm spin-permutations