perf use bitarrays
perf use a single BitArray
Merge pull request #2 from hayd/perf

Perf