public static boolean isSubtree(TreeNode t1, TreeNode t2) {
        if (t2 == null) return true;
        if (t1 == null) return false;
        if (isIdentical(t1, t2)) return true;
        return isSubtree(t1.left, t2) ||
               isSubtree(t1.right, t2);
    }