Implemented indexing of duplicated vertices.