Add working CacheMatrix and CacheMean functions