These were the top 10 performing stocks in the S&P 500 in the first half of 2023