Add the sample code that implment a mapreduce algorithm