updating makeCacheMatrix and cacheSolve functions