S&P/TSX composite up slightly as tech sector pulls back, energy makes gains