Implemented binary array serialization