Function for Matrix Inverse Cache