Implementation of a trie for word verification