HammingEncode implemented