Update and refactoring of Square Matrix Class

with some changes in program class for testing