Update cachematrix.R

CacheMatrix updated and tested