Retrieving infinite numbers of patterns in a spin-glass model of immune networks