new data structures to construct triangles