Pseudo LRU

Initial version needs more comments. Still needs exhaustive testing but
I think it works. It van be scaled to try smaller sets