add getting max and min depth of binary tree