minimum depth
balanced tree judgement