check if give tree is sub tree