half-strands and hamming-distance for nucleotides