Adding modified cachematrix.R