Final version of cachematrix.R

Final version of the code to cache inverted matix.