Searches for large-scale anisotropies of cosmic rays: Harmonic analysis and shuffling technique