concave triangulation algorithm implementation and tests