Simulation of the growth of linear polymers