(Reuters) - Technology and energy stocks gained in early afternoon trading on Monday, helping Wall Street shake off uncertainties following an explosion at one of New York's busiest commuter hubs.