implement csv to binary converter.