Distances function

Get the Neighbor nearest neighbors distance matrix