Shift in diet allowed gray wolves to survive ice-age extinct