binary tree LDR judgement.