Geometry of polynomial shift locus and the space of trees