Changing from dgesv to GMRES