add hamming Code encoder and decoder prototype