	/**
	 * Recursive method for getting all the {@link Branch}es of this tree.
	 * The current branch is added, with this method called for each of its children.
	 * @param curr the branch to be added
	 */
	private void getAllBranches(Branch curr) {
		if (curr == null) return;
		branches.add(curr); // add this to the list

		if (curr.getChildren() == null)
			return;

		for (int i = 0; i < curr.getChildren().length; i++) {
			getAllBranches(curr.getChildren()[i]);
		}
