defines tree/node struct