Encoding and decoding of the (18, 6, 8) code.
Try to decode the given 18-bit word to the nearest codeword, correcting up to 3 errors.
Encode the given 6 data bits to an 18-bit codeword.