Update cachematrix.R

Please evaluate the assignment accordingly..