Optimization of performance through the use of two vectors, dimensions and entries. dimensions holds all indices in a flat vector. entries holds all entries structs which have an offset, the number of indices and a value. This allows for the accessing and location of elements by using the entries and the saved offset.