ByteWeight review

why do you asking to provide you an implementation of table? Why do you really need to expose you table at all?

the same question is for Trie. Also it is not a good idea to name trie as a tree.