Update cachematrix.R

add code explanation