A generalized minimal residual acceleration of the charge iteration procedure