fixed crc16 implementation according to CITT CRC16 specification

This fixes the crc16 implementation according to the CITT CRC16 standard.