Dynamics of the stellar components of the bulge of M31