treelengths