Least recently used algorithm C++ implementation

Code above is in a working condition and is tested on Ubuntu 12.10 with g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3.  As I have used 'unordered_map' compile with -std=c++0x option