private static int[][] calculateDistances2(double[][] points,int N) {
		int[][] distanceMatrix= new int[N][N];
		for(int i=0; i<N;i++){
			for(int j=0;j<N;j++){
				if(j==i){
					distanceMatrix[i][j]=0;
				} else if(i<j){
					distanceMatrix[i][j]=distance(points[0][i],points[0][j],points[1][i],points[1][j]);
				} else {//i>j
					distanceMatrix[i][j]=distanceMatrix[j][i];
				}
				
			}
		
		}
		return distanceMatrix;
	}