Merged Code

This code has stitching has an implementation of stitching in triangle
mesh.
It does not have the implementation of global ids.