Updated method extreme_points()

It can now handle both contours and simple lists of points.