so, in this case, we can say that two neighborhoods A and B are the same if the ordering if
1) A_x=V (value that denotes a cell has been visited), B_x=V (x representing a certain position in a neighborhood)
2) in sorted vectors of non-V cells of A and B called S_A and S_B respectively, S_A_i=A_x and S_B_i=B_x, i being an index