Check for sub-tree in a tree