Java Convex Polygon benchmark code