Optimized flag, added BitSet2.replace()