Update utilities.lsp

Memoization experiments: here we will focus on performance improvements
via memoization.