Add two commands to shell: delete n (which garbage collects AST n) and gc (which garbage collects all ASTs except for the current and initial ASTs)