Update makeCacheMatrix and cacheSolve functions based on assignment guidelines