Add documentation for @memoized decorator.