Adopt NSCoding in BASampleArray. Encode/decode size in BABitArray.