title: A fixed size Dictionary with substitution priority
body: <p>I want to have a fixed-size dictionary. I am adding to it elements with a high frequency. But I want it to substitute the newer elements with higher priority with previous ones.
  Any help would be highly welcomed. </p>