modified minimum depth of binary tree