GEOMETRY ON TREES AND BUILDINGS