Working convex hull, naive implementation.