Nux's implemenation of compileHashFormula

I'm not sure it's any bettter but left it in for now.  Delete it if you
are sure yours is working
Modified similarity metric

so that it would always be >= the recur metric.  This seemed more
parsimonious to Nux.
use getSumOccurences in compareTo