added reduce to NodeProtocol.mapReduce