Monotone chain convex hull.java