Matching and learning in cities: urban density and the rate of invention