Added function to check if rule is binary
Modifications such that overall consistency with set of labels can be measured