Ported updateLRU to task3