fix floating point problems in hmm class

subtracting 2 (nearly) equal floats can result in huge errors, just
assign 0.0 to differences of "equal" floats.

fix issue #14