update third solution to BalanceBinaryTree