Rewrite 2-3_01-knack-sap using memoize solution.