add maximum depth of binary tree