There was a serious bug regarding the domain length of the distance
matrix.  This is now fixed.  Also there is an implementation that
repeats the domain.  It doesn't quite make sense...