Technology and communication-services names pushed the market to new highs.