Edited cachematrix.r file