private static double getGreatestDistance(JadeNode inNode) {
		double distance = 0.0;
		if (inNode.isInternal()) {
			if (inNode.isTheRoot()) {
				distance = inNode.getBL();
			}
			double posmax = 0.0;
			for (int i = 0; i < inNode.getChildCount(); i++) {
				double posmax2 = getGreatestDistance(inNode.getChild(i));
				if (posmax2 > posmax)
					posmax = posmax2;
			}
			distance += posmax;
			return distance;
		} else
			return inNode.getBL();
	}