Added extension method ToByteArray() to BitArray