Completed the two function given in original file

File contains 2 functions which calculate the inverse of a Special
Matrix. This function first check if a inverted matrix exists in the
cache