max and min depth of binary tree