Add new BitSet class and use it instead of array of bools