Split the bitutil header into an implementation file as well as a test file. Add leading zeroes function (untested on Windows).