new score function, returns scores of a learned tree on lists of training and test data