This looks very general, might be useful in other things eventually.  Might move it to JBrowse/Model/BinaryTreeNode.js ?