Fixed crc8() function.