Monotone chain convex hull.py