Copolymers of 2-deoxy-2-methylacrylamido-D-glucose with tertiary and quaternary amino groups