Short piece of code that takes in a memory read/write file and simulates cache memory storage behaviour