Update cachematrix.R

completed Programming Assignment 2 which caches the inverse of a matrix