calculate the free variables of a function (not done yet)