Made changes to the cacheMatrix.R file

Changes has been made for the code to work as per requirements in the
assignment