Conjugate Gradient Algorithms and Finite Element Methods