an LRU cache implementation
math utilities