added a Memory method to keep track of builtin functions (they must be released when out of scope)