Update cachematrix.R

My attempt at assigment 2