Returns the transpose of an array