Finish hamming.cpp