Changed tcode, dned and sum_* to pointer.

Note that this program has output the correct res, but even if it is 10 hours, this program did not stop.
Added free() for sum_{tate,yoko,name} and dned.
Use this function to print new tcode.
Changed default value of X and N to 5 and 8.