Added generalized permutation functions and changed the implementation for old permute functions to use the new.
- Tensor now uses permute functions.
- Removed transform iterator constructors
- Added permuting transform constructors.
Updated tensor unit test.