update Maximum Depth of Binary Tree