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