A memory efficient fast CSV writer