Remade storetynd, restoretynd and settcodeval functions for profiling.

And added some code for the distribution of the magic squares.