SMS dit: Conjugate gradient algorithms and finite element methods