cachematrix.R. Implemented cache inverted matrix functionality