Updated bit library to handle 48 bit numbers

Tests updated as well
Merge remote-tracking branch 'origin' into gh-pages

Merging to gh-pages.