Implemented the map data structure to store the occurrence. Now outputing them with their occurrences, but not in any order.