Helper function that allocates a new node with the given data and null left and right pointers .
static Node newNode ( int data ) { Node new_node = new Node ( ) ; new_node . data = data ; new_node . left = new_node . right = null ; return new_node ; }