Cache simulation for CS3021 Computer Architecture coursework