Dynamics of curve flows related to vortex filaments and ferromagnetism