Add matrix analyzis and further testing.

- doing some testings.
- matrix analyzis comprises elements' sizes