BitArray class for bit storage, management, and output.