public BitChunk(BitArray bits) { this.bits = bits; this.numBits = bits.Length; countBits = new int[2]; countBits[0] = bits.Rank(false, bits.Length); countBits[1] = bits.Rank(true, bits.Length); }