Added -tree-map, -tree-reduce, -tree-mapreduce, -clone
Updated reduce functions to use reduce