Added permute!, ipermute!

* these permute an array according to a given permutation
* permute renamed to permutedims