Major effectivization of sorting

Instead of iterating over the most common words and every user, a lambda
expression and sorted() is now used. Shaves off almost two seconds from
generation time.