Prog. Assignment 2: caching matrix inverse

new functions (2 required plus helper program to check for square
numeric matrix) along with the two mean functions
Improved comments

Improved the comments on matrix functions