changed typedefs of Eigen::Matrix to Rowmajor. TODO: change name, it collides with same wolf typedefs