Changed IndexedData implementation to use vector instead of set, saving memory