Update cachematrix.R

I just edit some code to fit the assignment condition.