Define Trie and Gaddag as global variables for JSLint