Initial version of NewtonGMRES solver. Still to do: 1. The atol and rtol define globally. 2. Decide about N