Implemented cache system, with random and fifo policies