First draft of the conjugate gradient method