Energy and Small Caps Surge as S&P 500 and Nasdaq Retreat