private double[,] CreateDimenstionMatrix(List <Place> places) { int placesCount = places.Count; double[,] dimenstionMatrix = new double[placesCount, placesCount]; for (int i = 0; i < placesCount; i++) { for (int j = 0; j < placesCount; j++) { dimenstionMatrix[i, j] = EuclideanDistance.FindEuclideanDistance(places.ElementAt(i), places.ElementAt(j)); } } return(dimenstionMatrix); }