Tag epichlorohydrin-dimethylamine polymers