Update cachematrix.R

First commit for Programming Assignment 2