NEW YORK (Reuters) - The S&P 500 ended flat on Tuesday and the Nasdaq posted modest gains as technology shares bounced from sharp losses in the prior session and comments from Fed Chair Janet Yellen boosted expectations of a December rate hike.