add matrix transposition