Update cachematrix.R

Had to correct a mistake