Hamming coder