some convex hull & math code
some convex hull & math code