public static int CalculateDis(String [] dimensions, HashMap<Integer,ArrayList<Double>> centers){
		double minDistance = Double.MAX_VALUE;
		int minCenter = 1;
		for(Integer i : centers.keySet()){
			double distance = 0.0;
			for(int j =2; j<dimensions.length;j++){
				distance += Math.pow(Double.parseDouble(dimensions[j]) - centers.get(i).get(j-2),2);
			}
			if(distance<minDistance){
				minDistance = distance;
				minCenter = i;			
			}
		}	
		return minCenter;
	}