Added basic comparison function to HotTerm.

If a HotTerm should be used in a set, it needs
a comparison function.