add max depth of binary tree