cleaning up variable allocation in GMRES