crc16 slice-by-8 table generator code included for reference