B is now column-major