My edits to cacheMatrix for assignment completion