hamming distance has the following features