Find transpose of matrix (#672)