updated the all linear algebra related operations by using Eigen