Basic cache simulator