updated IndexedCorpus, implement IndexCorpus in cython