Update cachematrix.R

my assignment solution