Made the Convex Hull calculation abstract.