Added matrix transposition