Tuning the frequency_hash functions and border finder.
Refactors cutoff calculations for hit determinations.