Merged and modified config.h's constructor method to be in cachesim.h