makeCacheMatrix and cacheSolve functions are modified