2 binary tree problems