added linktToFaces and sharedEdges
added calculate centroid