Added cost and gradient for Newton Conjugate Gradient (scipy).