Change CRC calculation to table lookup implementation.

Contributed by Ron Economos.  The C code in the comment is
adapted from crc.c in Libav:

http://git.libav.org/?p=libav.git;a=blob;f=libavutil/crc.c;hb=HEAD