code: func (ds *distanceSet) reset() {
  	minDist := math.MaxFloat64
  	minIndex := 0
  	for i, d := range ds.Distances {
  		if d < minDist {
  			minDist = d
  			minIndex = i
  		}
  	}
  
  	ds.MinIndex = minIndex
  	ds.MinDistance = minDist
  }
docs: // reset refinds the denormalized minimum. Can be used if manually updating values.
  // not part of the official api.