Implement abitrary-precision CRC calculation.

Includes parameters for many different known CRC standards.
Also accepts custom CRC parameters.