initial framework for convex hull