Constructing a permutation matrix

My bad, I wrote it in a hurry based on C_\pi from the Wikipedia article but I did screw up one of the multiplications, thanks for fixing the issues.
Ultimately it also depends how you define the permutation matrix (row or column wise).