public static ArrayList<Posting> ANDMergeRanked(ArrayList<Posting> tempPostings, ArrayList<Posting> nextPostings){
		if(tempPostings == null || nextPostings == null)
			return null;
		
		ArrayList<Posting> mergedPostings  = new ArrayList<Posting>();
		
		// Loop to merge
		// Take MIN way to score
		for(int i = 0, j = 0; i < tempPostings.size() && j < nextPostings.size(); ){
			if(tempPostings.get(i).docID == nextPostings.get(j).docID){
				tempPostings.get(i).freq = (tempPostings.get(i).freq < nextPostings.get(j).freq) ? tempPostings.get(i).freq : nextPostings.get(j).freq;
				mergedPostings.add(tempPostings.get(i));
				i++;
			}
			else if(tempPostings.get(i).docID < nextPostings.get(j).docID)
				i++;
			else
				j++;			
		}
		
		return mergedPostings;
	}