distance matrix added