Minor rewrite of FrequencyMap

Added a Map view and used getOrDefault in methods