Updated functions cacheMatrix and cacheSolve