doc: add functional.memoize usage example.

* lib/std/functional.lua (memoize): Add a usage example.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>