This function is used by baysout to find the largest value of a distance vector. Returns the value and the index number
maxdist(dneighbors)
dneighbors
Caroline Rodriguez
baysout