another note, more pertinent to the original comment. Adding `compare/4`  would be useful for simplifying some of the code in `hashtree_tree.erl`.