solving convex hull