fasten using memoize at problem 074

remove unused library

fasten using memoize at problem 074↲