binary tree depth, construct balanced binary tree from list