U.S. stocks post big gains, Nasdaq exits correction territory and small caps log day in more than a year