Added Eigen/Dense to use the determinant