Update cachematrix.R

programming assignment 2 by oshan modi