add restarts to gmres (fixes #6)