Added Memoizer class.