Cache Inverse of Matrix

Code to calculate and cache inverse of a matrix