exercise-anagrams/main.py: Use built-in sorted() function

It does the same exact thing and it's more readable.
exercise-anagrams.py: Use a set with sorted words (representants)

Since the problem asks for the number of anagrams found, there's no need
to keep in memory a dictionary with all the words. A set with the sorted
ones will suffice.