Update cachematrix.R
with new code and comments