A basic bit I/O manipulation library