Adds a first version of a data structure to build indices.