Tree collection and utility library