corrected inv_eigcg.cpp file