PrefixTree.java updated