Update cachematrix.R

prog assignment 2 submission version