Helper function that allocates a new node with the given data and NULL left and right pointers .
struct Node * getNode ( int data ) { struct Node * newNode = new Node ; newNode -> data = data ; newNode -> left = newNode -> right = NULL ; return newNode ; }