R Programming week 2 assignment cacheMatrix