Computes the Hamming difference between DNA strands