Added a local unique identifying number to each triangle, and also
added adjacency information for writing triangles to an output file