Convex hull problem solution - 5th semester