Update cachematrix.R

This  is Balasubramaniam Dakshinamoorthi Assignment 2 submission