Polymers with Heterocyclic Rings in the Chain