add max depth of the binary tree.