public void mergePERanges() {
		if(!merged && ranges.size() > 1) {
			sortRanges(); 
			int i = 0;
			do {
				PERange cr = ranges.get(i);
				PERange next = ranges.get(i+1);
				if((next.getBegin() - cr.getEnd()) == 1) {			
					cr.setEnd(next.getEnd());
					ranges.remove(i + 1);
					continue;
				}
				i++;
			} while(i<ranges.size()-1);
			merged = true;
		}
	}