Hamming correction code (royalex & anault) + dynamic errors