finished convex hull -- needs testing