EllenBinTree refactoring