add basic inverted index tool