Updated cachematrix.R file for evaluation