Added functions to cache inverse of matrix