makeCachematrix and cacheSolve to calculate the inverse of a matrix and cache it