Wednesday was a roller coaster on Wall Street with U.S. stocks struggling for direction.