New algorithm for high-temperature series: The planar rotator model.