move ellipse and enclosing_ellipse to utils/