The Mechanical Design of Trees