Dynamics of two-dimensional melting