of polyamines with epihalohydrins or precursors thereof