https://numbas.mathcentre.ac.uk/question/6135/find-all-codewords-with-given-hamming-distance.zip?