An implementation of Trie in Java