Use BitField

Fixes #56