Completed cacheMatrix.R assignment