The Simple Algorithm That Ants Use to Build Bridges