implement a function to convert a given vector into the csv format
implement a function to retrieve elements having specified ids
implement a function to write csv files