Edited cachematrix.R file