Mapreduce simulation