However, if one of the feature vectors has a tree-based feature 3 (which happens when c i or c j is NULL), we handle the flat features and the tree-based feature separately.
we first perform subtraction for the flat features as described above, and then append the tree-based feature to the feature set of inst.