Final Version of cachedMatrix.R