make all the needed data structures for have easy access to all the indices of the vector