Two convex hull algorithm with lua