Update cachematrix.R

finished assignment