added write function to CSVWriter which takes two arrays and writes it to a csv file
added write function to CSVWriter which takes two arrays and writes it to a csv file