Updated cachematrix.R file for R-Programming Assignment #2.