a zero indicates that the input is a null binary tree, so t is set to null
if (n == 0)
t = setnull();