Add hamming problem

Updated the tests.