Fickian and non-Fickian diffusion of cosmic rays