memoization Jensie-style 1st attempt
lcipda REPL and tests