adding my edits to cacheMatrix.r this is final submission