Added transpose and transposeWithIndex.  Needs more testing