Simple implementation of BitArray, which stores the bits. For the basic random access operations for a rather shorter array, you might want to consider ByteArray. BitArray supports the conversion from/to integers.