Bialgebra deformations and algebras of trees