word_chains using TreeNodes