Remove BitSet and replace it with a bit array