The S&P 500 surged this year, but four sectors performed even better.