add foldl & foldr to mapreduce (tested)