Dynamics of Heterocyclic Polymers