def not_zeros_indexes(vector)
      vector.chars.map.with_index do |bit, index|
        next if bit == '0'
        index
      end.compact
    end
def not_zeros_indexes(vector)
      vector.chars.map.with_index do |bit, index|
        next if bit == '0'
        index
      end.compact
    end
rubocop:enable Style/EachWithObject