Update cachematrix.R

This contains my solution to the R-Programming programming assignment #2.