Updating JointSRLAndDP to include treeConstraint
(not yet functional)