Convex Hull Algorithm programmed in Java