computation of score for tree-structured CRF added