replace the current internals of the library (tree of hashmaps) with a prefix tree or possibly a tree of prefix trees