generate distance_matrix for a sampled set of keys