A Cache Simulator