public void addFromFront(ArrayList<ArrayList<Integer>> result,
			ArrayList<TreeNode> children) {
		ArrayList<Integer> tempArrayList = new ArrayList<Integer>();
		for (int i = 0; i < children.size(); i++) {
			tempArrayList.add(children.get(i).val);
		}
		result.add(tempArrayList);
	}