map reduce

added mapReduce() methods to resultset and dynamicview