Simulation of entangled polymer chains