public static Pair<Boolean, Pair<Integer,Integer>> check(Map<Integer, Pair<Double,String>> first, Map<Integer, Pair<Double,String>> second){
		int firstVal = -1;
		int secondVal = -1;
		int counter = 0;
		for(Map.Entry<Integer, Pair<Double,String>> f : first.entrySet()){
			if(counter == 0){
				firstVal = f.getKey();
			}
			if(counter == 1){
				secondVal = f.getKey();
			}
			counter++;
		}
		for(Map.Entry<Integer, Pair<Double,String>> s : second.entrySet()){
			if(s.getKey() == firstVal){
				return Pair.make(true, Pair.make(s.getKey(), secondVal));
			}
			else if(s.getKey() == secondVal){
				return Pair.make(true, Pair.make(s.getKey(), firstVal));
			}
		}
		return Pair.make(false, Pair.make(-1,-1));

	}