Completed Hamming Distance in C.