Encoding and decoding of the (24, 12, 8) extended Golay code.
Try to decode the given 24-bit word to the nearest codeword, correcting up to 3 errors and detecting 4 errors.
Encode the given 12 data bits into a 24-bit codeword.