Add CRC functions and unit tests.
Add bit field packing and unpacking functions with unit tests.