add permutation matrices