construct an index over a very large corpus using MapReduce