Molecular dynamic study of dielectric polarization and ferroelectricity in a model polar polymer