finished editing cacheMatrix functions