compute the convex hulls of drawn polygons, written in elm