Fix warnings
Replace BitArray/Bitops with BitSet