distances from walkingmatrix

works!