added BitArray class