Replace GLM with Eigen