Iterate over set or clear bits depending on which are the majority in BitSet group for efficiency