- frequencyMap functionality using mapMerge monoid