Better solution for balanced binary tree.