Edited cachematrix.R file.