Polymers of acrylamide or methacrylamide