Mamdani cites potential for socialists in Dems