constructor(data: T) {
        this.data = data;
        this.left = null;
        this.right = null;
    }