Fixed two memory leaks in Haff::calculate().
Improved hypotheses handling in Haff::calculate().