Ultimate convex hull algorithm