Assignment Finished Jun. 19

Complete the assignment
Additional feature:
> check if the matrix is a square mat before call solve
> check if the new matrix assigned is identical to the stored