Turned on/off multithreading for memoization according to whether waterfall parallelism is turned on/off, as worked out with David Rager.