homo- or copolymers derived from unsaturated compounds containing heterocyclic compounds containing nitrogen in the ring