Added matrix transpose method