fixed a bug: when writing values to factor_graph_learnt.fg, I check if the value is greater than numeric_limits<Real>::min(). before there was an issue when I ran the code on mac vs linux.