minimum depth of tree