public static <T extends Comparable<T>> int getBestItemInd(Vector<T> v, boolean maximize){
		int bestInd = MathOperation.rndInt(v.size());
		for(int i=0; i<v.size();i++){
			if(maximize && v.get(i).compareTo(v.get(bestInd)) > 0) bestInd = i;
			else if(!maximize && v.get(i).compareTo(v.get(bestInd)) < 0) bestInd = i;
		}
		return bestInd;	
	}