yet another matrix solver using eigen