Refactor: move Memo and Debugging stuff to helpers.rkt