Adding hamming-code implementation