the below function has 2 nested for loops with a dictionary(that contains site coordinates) passed as an argument and it is basically generating a distance matrix of each co