Hamming distance and code related work

Finished implementation of a Hamming distance function, started work on
Hamming code