Boggle word search using ternary search trie