updata cachematrix.R

for submitting assignment 2