#405 Implement memo method.

#405 Added DyMemo and related test cases.
Doesn't Qulice complain about this indentation?