updated trie.js file with 18 passing tests and 8 failures