CTCI 4.8 check if t2 is t1's subtree