[docooler] find the min deep in a tree