Implementation almost done.
Only LRU is left now.