MapReduce Code to create an Inverted Index