private double calculateCosimilarity(ArrayList<Integer> leftVector,ArrayList<Integer> rightVector){
		
		double result = 0;
		
		double sizeLeft = 0;
		double sizeRight = 0;
		
		System.out.println("leftVector = "+leftVector);
		System.out.println("rightVector = "+rightVector);
		
		
		for(int i =0;i<leftVector.size();i++){
			sizeLeft +=Math.pow(1, 2);
		}
		sizeLeft = Math.pow(sizeLeft,0.5);
		
		for(int i =0;i<rightVector.size();i++){
			sizeRight +=Math.pow(1, 2);
		}
		sizeRight = Math.pow(sizeRight,0.5);
		
	
		int maxValue = 0;
		
		for(int i =0;i<leftVector.size();i++){
			int temp =  leftVector.get(i);
			if(temp>maxValue){
				maxValue = temp;
			}
		}
		
		for(int i =0;i<rightVector.size();i++){
			int temp =  rightVector.get(i);
			if(temp>maxValue){
				maxValue = temp;
			}
		}
		
		
		double dot = 0;
		for(int i=0;i<maxValue;i++){
			if(leftVector.contains(i) && rightVector.contains(i)){
				dot+=1;
			}
		}
		
		result =(double)7-(double)6*(dot/(sizeLeft*sizeRight));
		return result;
	}