Crc Error Detection Code In C++