finish minimum depth of binary tree