fixed bug where w[i] was being set to nil
fixed trie.height method, cleaned up print_words function