Hamming distance between pairs of binary sequences in given set.