implemented a pseudoinverse function for dense matrix using eigen, test case passed.