Rework sparse arrays.

Break sparse bit array class into two, making sparse array semi-abstract superclass. Introduct new sparse array subclass, sparse sample array. Add BASampleArray protocol, to which BASampleArray and BASparseSampleArray classes conform.