Every form in nature traces back to a handful of primal algorithms — spirals that unfurl in shells and galaxies, branches that fork through rivers and lungs, waves that ripple across oceans and sound.