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