bintree: add height operation