New version based on java.util.BitSet.