class for opening CSV files

get_cols is slow, should be improved