Adding support for checking for recursive trees. Added an example of a recursive tree