Effect of Confinement on the Freezing-Melting Dynamics of Water