def headers(file)
      Array.new(CSV.open(file, &:readline).size) { |i| i.to_s }
    end
def headers(file)
      Array.new(CSV.open(file, &:readline).size) { |i| i.to_s }
    end
reads the first line of the CSV file
 returns the columns indices as an array