implemented IndexedCorpus