A Basic Cache Simulator