Update cachematrix.R

complete assignment