C++ Cache Simulator