Create PermsByColumns.m

The comment in the code explains it all. There's probably a better way already available, but my MATLAB-fu couldn't find it.