Inlined gmres module because it was only used in one place.

This will also help bring the large v,z buffers off the heap when
they go out of scope.