Tree structure creation from array listings.