Update cachematrix.R

finally did it!