add ofstream and link for two dimension array