Function to allocate a new node with the given data and null in its left and right pointers
function newNode ( data ) { var Node = new TreeNode ( ) ; Node . data = data ; Node . left = null ; Node . right = null ; return Node ; }