Merge pull request #75 from bchretien/master

Add a LRU cache and use it for CachedFunction.
polynomial.hh: split definitions.