finished invertedIndex.ml