public static Instances popMatchSet(Instances i, FastVector attrib, ArrayList<Match> matches){
				
		//Loop through each match, create an instance and add it to the set
		for(Match m: matches){
			
			//Create the instance and set attributes
			Instance newmatch = new Instance(7);			
			newmatch.setValue((Attribute) attrib.elementAt(0), m.getMatchbases());
			newmatch.setValue((Attribute) attrib.elementAt(1), m.getTotal());
			newmatch.setValue((Attribute) attrib.elementAt(2), m.getMatchper());
			newmatch.setValue((Attribute) attrib.elementAt(3), m.getMatchdiff());
			newmatch.setValue((Attribute) attrib.elementAt(4), m.getQDiff());
			newmatch.setValue((Attribute) attrib.elementAt(5), m.getSDiff());
			//We don't know what type of match we have - so we leave last attribute empty
						
			//Add to the set
			i.add(newmatch);						
		}		
		
		//Return the set
		return i;		
	}