Simulation of a Non-Markovian process modelling contour length fluctuation in the Doi-Edwards model