Identifying subtree perfectness in decision trees