Update cachematrix.R

added the code to implement the two functions that avoids calculating a inverse matrix if it is already  on cache.