makeCacheMatrix and cacheSolve functions