Added a variable in the file nodes.h and only on the V types in order to be able to find the place of the element in the vector.