New version for PrefixTree in progress.