Encoding and decoding of the (10, 6, 3) code.
Try to decode the given 10-bit word to the nearest codeword, correcting up to 1 error.
Encode the given 6 data bits into a 10-bit codeword.