update the circumcircle algorithm.