A (probably crappy) LRU implementation