The geometry and dynamics of binary trees