C++ -> MemoizedFibonacci