public ArrayList<TreeNode> getChildren(ArrayList<TreeNode> parents) {
		ArrayList<TreeNode> result = new ArrayList<TreeNode>();
		for (TreeNode node : parents) {
			if (node.left != null)
				result.add(node.left);
			if (node.right != null)
				result.add(node.right);
		}
		return result;
	}