Move calculation of caches sizes based on the cache model to CacheModel.h/cpp