add collapseEdge2d() and some other functions; Thanks Luzia =)