Fetch the level of a specific bdd variable.
Returns the position of the variable var in the current variable order.