Anisotropy of Particle Fluxes in Primary Cosmic Rays Measured with the Alpha Magnetic Spectrometer on the ISS