convex hull implemented