Added permute!, ipermute!

* these permute an array according to a given permutation
* permute renamed to permutedims
* findnext defined (and used by permute!)
* findfirst defined in terms of findnext