Efficient simulation of semiflexible polymers.