Added a bit vector utility.
Added some more tests (why not).
Tweaking.
Self-review.