private int findClosest(PointWritable value){
		int closest = -1;
		double minimalDistance = Double.MAX_VALUE;
		for(int i = 0; i<means.size(); i++){
			double distance = value.cosineNorm(means.get(i));
			if(distance < minimalDistance){
				minimalDistance = distance;
				closest = i;
			}
		}
		return closest;
	}