Programming Assignment 2

functions to store and calculate  the inverse of give matrix and store
the inverse and return inverse if it already exists.