Diagonal in the Q-matrix is no longer non-zero.

The diagonal in an input distance matrix represents the distance from
a sequence to itself, always being zero. These values shouldn't be
considered in the calculation of the Q-matrix, since they aren't real
pairs.