Update cachematrix.R

This is my response for the Programming Assignment 2 of the R Programming course of the Coursera's Data Science specialization. The functions makeCacheMatrix.R and cacheSolve.R passed the test in R Studio and were saved in the same repository.