algorithm class note and lru