Update cachematrix.R

this is my assignment.