Personnal implementation of the Plastic Tree algorithm