hamming distance code complete!