inverted index reducer