S&P 500 groups on track for strongest earnings in five years