Add structured permutation code from Matt Rockman