Trie Dictionary tested and code corrected