Updated Cachematrix.R with final changes

Updated file to calculate the inverse of a matrix and return cache if
necessary.