bisection of binary trees