update Minimum Depth of Binary Tree