Updated cacheMatrix.R for Programming Assignment 2

Updated the cacheMatrix.R file as per the Programming Assignment 2.