Code for first HPCA project - Cache simulation