Algorithms for convex hull calculations