adding cache simulator code