Function bestFitCircle