CRC 16 implemented in bash.