Serializes the BitArray to a string.
The string can be deserialized back to string by using the constructor overload that takes in string and bit count.
BitArray Class