A Framework of Conjugate Direction Methods for Symmetric Linear Systems in Optimization