public void addTreeNode(List<TreeNode> list, TreeNode node){
        if(node == null)
            return ;
        list.add(node);
        addTreeNode(list,node.left);
        addTreeNode(list,node.right);
    }