Convex hull algorithm | ScratchStats