Source: https://www.csee.umbc.edu/~lomonaco/f07/653/handouts/BCH-Code-Example.pdf