Modifying cachematrix.R