How to Grow a Technological Tree