contour analysis library cpp