make matrix

It can change txt to matrix.
But there is still problem in dealing with list.