Changed join method for sets and maps.
Implemented fold for MapEntry.