solve convex-hull