Updated bit library to handle 48 bit numbers

Tests updated as well