Tiger — create function for extracting free variables out of an AST