Perl package to manage bit streams, including a variety of integer coding methods