insert 内に、

if (tree == NULL) {
tree = new BinNode<int>(data);

}

というコードがありましたが、これのことでしょうか?