
#include<iostream>
using namespace std;
struct node
{
int data;
struct node *left;
struct node *right;
};
/**********Element insertion*****************/
node* insert(node *root,int data)
{
if(root==NULL)
{
root=new node();
root->data=data;
root->left=root->right=NULL;
...