MapReduce C++ implementation