* Improve bitset operations.
* Refine code.
* Fix bug
Merge pull request #1 from stevenknown/master

* Improve bitset operations.