algo to find convex hull points