seemingly working convex hull