added head, left, and right pointers to token, tree variables