Update cachematrix.R

added my assignment solution