[Lab01]: Add hamming distance. Refactoring.