added build_score_tree