A class of globally convergent conjugate gradient methods