typos in comments fixed, return statement added to cacheSolve