@SuppressWarnings("unchecked")
	public E pop() {
		if (empty) return null;
		
		E ret = (E)VALUES[begin];
		VALUES[begin] = null;
		
		begin++;
		if (begin==MAX) begin=0;
		
		if(begin == end){
			empty = true;
			begin = end = 0;
		}
		
		return ret;
	}