adding convexhull and inside functions to polyline