Update cachematrix.R

Added an explanation to the code.