added tree.isBinary()