adding map to control vertex indexes over the heap
merging