Update cachematrix.R

Edited assignment.