The technology sector, driven by AI companies, is the primary contributor to the S&P 500's year-to-date returns