Min depth in tree