Correcting potential segfault due to division by 0

This happend when passing a weird file name to cmph in generate
or verbose mode.
To get the crash test script and full report, refer to:
http://bugs.debian.org/715745
Fix memory leak problem for bmz8
fixed problem where the FCH algorithm did not dispose the keys using the user supplied function specified in cmph_config_t.
Merge commit '2e797796a545748ea815f39113088c701b45653'
Style fixes to https://sourceforge.net/p/cmph/git/merge-requests/3/.
Merge commit 'efe08b8080d0696bf388b21'
Revert "Fix memory leak problem for bmz8"

This code leaks memory when iterations reaches 0 and previous code was
correct. See https://sourceforge.net/p/cmph/git/merge-requests/4/.