public void map(LongWritable key, Text value,
                        Context context ) throws IOException,
                        InterruptedException {
            StringTokenizer itr = new StringTokenizer(value.toString());  
		    while(itr.hasMoreTokens())  
		    {  
		        String outValue = new String(itr.nextToken());
  
		        String[] list = outValue.replace("(", "").replace(")", "").split(",");  
		        String[] c = centerlist[0].replace("(", "").replace(")", "").split(",");  
		        float min = 0;  
		        int pos = 0;  
		        for(int i=0;i<list.length;i++)  
		        {  
		            min += (float) Math.pow((Float.parseFloat(list[i]) - Float.parseFloat(c[i])),2);  
		        }  
		        for(int i=0;i<centerlist.length;i++)  
		        {  
		            String[] centerStrings = centerlist[i].replace("(", "").replace(")", "").split(",");  
		            float distance = 0;  
		            for(int j=0;j<list.length;j++)  
		                distance += (float) Math.pow((Float.parseFloat(list[j]) - Float.parseFloat(centerStrings[j])),2);  
		            if(min>distance)  
		            {  
		                min=distance;  
		                pos=i;  
		            }  
		        }  
		        context.write(new Text(centerlist[pos]), new Text(outValue));  
		    }  
        }