Wall Street ends topsy-turvy day marginally up