ultimate convex hull algorithm