Get a list of all words in tree in pairs with their frenquecies