Added foldl and foldr