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