added conjugate gradient/residuals