adds conjugate gradient with jacobi preconditioning