Update cachematrix.R

Submitting Program Assignment 2 for R Programming.