added code to cachematrix so that it caches the inverse of a matrix