Convex Hull Algorithm written in Java