mergeVertices function

Merge duplicate vertices in mesh object