solution: balanced binary tree 1