Implemented matrix inversion using the Eigen library