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