implemented ternary trie, not sure if its finding ALL possible words...