Permute

Member functions for an array that allow one to permute, roll, and transpose axes.
This is an awful hack, but I only want to use this for testing now. We'll fix rand when the underlying machinery is present. I mention in comments in its header file that it should be rewritten.