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