Print the tree for debugging purposes.

Note: be careful with pointers to structs.