Added regularization to conjugate gradient