added optimizer for conjugated gradient