Computer modelling of the degradation of linear polymers