Addition in TreeCPD and implement RuleCPD