Update cachematrix.R

This is Programming Assignment 2 for Coursera: R Programming
Steve Wang