internal_ransac function

Apply RANSAC algorithm to estimate diameters.