add minimum depth of binary tree