Update cachematrix.R

Added source code and comments