Update cachematrix.R

Assignment done by me for Data Science track.