Added thresholding to determine when to stop the loop in Conjugate Gradient.
Added a couple of diagnostics.