Do gradient, hessian, or hessian-vector products for Newton CG opt