doc: distance matrix, improved example