Fix issue #19

The literature indicates the "top" variable of a function is the one
with the *lowest* index in the ordered support set.

Just in case it's useful, added a "bottom" variable.