binary tree for pathSum and minDepth and isBalanced