Wall St ends sharply higher on optimism before key inflation