memory v3

need to learn automated testing.
See https://github.com/advanced-js/memory/pull/12#discussion_r14552444.