add file readin and write out, file readin convert to 2Dvectors