Making TreeCreator&ScoreAverager play nice

lots of unique_ptrs everywhere