Adding the LRU policy to the cache simulator

And also other improvements like performance counters and finalization.