Congugate gradient method.