Updates to cache matrix.R