Use pairwise_distances_argmin_min function.

Thanks @pgervais.