Update to cachematrix.R

Update to cachematrix.R will now run as intended