build inverted index using MapReduce