System.out.println("getChildren found " + result.getLength() + " in " + (System.currentTimeMillis() - start) + "ms.");
	public ArraySet getChildren(NodeSet al, int mode) {		NodeProxy n, p;		ArraySet result = new ArraySet(getLength());		switch (mode) {			case DESCENDANT :				for (Iterator i = iterator(); i.hasNext();) {					n = (NodeProxy) i.next();					if (al.nodeHasParent(n, true, false))						result.add(n);				}				break;			case ANCESTOR :				for (Iterator i = iterator(); i.hasNext();) {					n = (NodeProxy) i.next();					p = al.parentWithChild(n.doc, n.gid, true);					if (p != null)						result.add(p);				}				break;		}		return result;	}