def permutation_t(vector)
      ByteVector.new(
        vector.each.with_index.inject([]) do |b_arr, (byte, index)|
          b_arr[T[index]] = byte
          b_arr
        end.map(&:to_i)
      )
    end
def permutation_t(vector)
      ByteVector.new(
        vector.each.with_index.inject([]) do |b_arr, (byte, index)|
          b_arr[T[index]] = byte
          b_arr
        end.map(&:to_i)
      )
    end
rubocop:disable Style/EachWithObject