working on Convex Hull