Collect vectors of a tree