[Week 5] cache algorithm done without real effect