LRU least recently used cache challenge, code works, but seems to be too slow, needs to be less than 2 seconds