Added scoring functions to Stree.