Fixed Trie algorithm, now adds and prints words correctly.