added convex hull find function