add group anagrams algorithm
change dictionary iteration